package sistemasdistribuidos;

public class TelaInicial extends javax.swing.JFrame {

    public TelaInicial() {
        initComponents();
    }

    public TelaInicial(String nome) {
        initComponents();
        jLabelNome.setText(nome);
    }

    public void sumir() {
        jButtonTelaVendas.setVisible(false);
        jButtonBanhoTosa.setVisible(false);
        jButtonCadastroCliente.setVisible(false);
        jButtonClientesCadastrados.setVisible(false);
        jButtonCadastroAnimais.setVisible(false);
        jButtonAnimaisCadastrados.setVisible(false);
        jButtonRelatorioVendas.setVisible(false);
        jButtonNDefinido.setVisible(false);
    }

    public void aparecer() {
        jButtonTelaVendas.setVisible(true);
        jButtonBanhoTosa.setVisible(true);
        jButtonCadastroCliente.setVisible(true);
        jButtonClientesCadastrados.setVisible(true);
        jButtonCadastroAnimais.setVisible(true);
        jButtonAnimaisCadastrados.setVisible(true);
        jButtonRelatorioVendas.setVisible(true);
        jButtonNDefinido.setVisible(true);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        uJPanelImagem1 = new componentes.UJPanelImagem();
        jButtonTelaVendas = new javax.swing.JButton();
        jButtonBanhoTosa = new javax.swing.JButton();
        jButtonCadastroCliente = new javax.swing.JButton();
        jButtonRelatorioVendas = new javax.swing.JButton();
        jButtonCadastroAnimais = new javax.swing.JButton();
        jButtonAnimaisCadastrados = new javax.swing.JButton();
        jButtonClientesCadastrados = new javax.swing.JButton();
        jButtonNDefinido = new javax.swing.JButton();
        jLabelNome = new javax.swing.JLabel();
        jLabelMsg15 = new javax.swing.JLabel();
        jMenuHome = new javax.swing.JMenuBar();
        jMenuCadastros = new javax.swing.JMenu();
        JMenuItemCadastroProduto = new javax.swing.JMenuItem();
        JMenuItemCadastroServico = new javax.swing.JMenuItem();
        jMenuSistema = new javax.swing.JMenu();
        Servicos1 = new javax.swing.JMenuItem();
        jMenuSistema1 = new javax.swing.JMenu();
        Servicos2 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Tela Inicial");

        uJPanelImagem1.setImagem(new java.io.File("C:\\Ziviane10\\Icons\\fundo.jpg"));

        jButtonTelaVendas.setBackground(new java.awt.Color(255, 255, 255));
        jButtonTelaVendas.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonTelaVendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cacho.png"))); // NOI18N
        jButtonTelaVendas.setText("Tela de Vendas");
        jButtonTelaVendas.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonTelaVendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonTelaVendasActionPerformed(evt);
            }
        });

        jButtonBanhoTosa.setBackground(new java.awt.Color(255, 255, 255));
        jButtonBanhoTosa.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonBanhoTosa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/rato.png"))); // NOI18N
        jButtonBanhoTosa.setText("Agenda de Banho e Tosa");
        jButtonBanhoTosa.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonBanhoTosa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBanhoTosaActionPerformed(evt);
            }
        });

        jButtonCadastroCliente.setBackground(new java.awt.Color(255, 255, 255));
        jButtonCadastroCliente.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonCadastroCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/gc.png"))); // NOI18N
        jButtonCadastroCliente.setText("Cadastros de Clientes");
        jButtonCadastroCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonCadastroCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCadastroClienteActionPerformed(evt);
            }
        });

        jButtonRelatorioVendas.setBackground(new java.awt.Color(255, 255, 255));
        jButtonRelatorioVendas.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonRelatorioVendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/passaro.png"))); // NOI18N
        jButtonRelatorioVendas.setText("Relatório de Vendas");
        jButtonRelatorioVendas.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonRelatorioVendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonRelatorioVendasActionPerformed(evt);
            }
        });

        jButtonCadastroAnimais.setBackground(new java.awt.Color(255, 255, 255));
        jButtonCadastroAnimais.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonCadastroAnimais.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/gato.png"))); // NOI18N
        jButtonCadastroAnimais.setText("Cadastros de Animais");
        jButtonCadastroAnimais.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonCadastroAnimais.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCadastroAnimaisActionPerformed(evt);
            }
        });

        jButtonAnimaisCadastrados.setBackground(new java.awt.Color(255, 255, 255));
        jButtonAnimaisCadastrados.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonAnimaisCadastrados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cat.png"))); // NOI18N
        jButtonAnimaisCadastrados.setText("Cadastros de Usuários");
        jButtonAnimaisCadastrados.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonAnimaisCadastrados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAnimaisCadastradosActionPerformed(evt);
            }
        });

        jButtonClientesCadastrados.setBackground(new java.awt.Color(255, 255, 255));
        jButtonClientesCadastrados.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonClientesCadastrados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cao.png"))); // NOI18N
        jButtonClientesCadastrados.setText("Cadastros de Funcionários");
        jButtonClientesCadastrados.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonClientesCadastrados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonClientesCadastradosActionPerformed(evt);
            }
        });

        jButtonNDefinido.setBackground(new java.awt.Color(255, 255, 255));
        jButtonNDefinido.setFont(new java.awt.Font("Segoe UI", 0, 16)); // NOI18N
        jButtonNDefinido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/ave.png"))); // NOI18N
        jButtonNDefinido.setText("Cadastros de Raças");
        jButtonNDefinido.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButtonNDefinido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNDefinidoActionPerformed(evt);
            }
        });

        jLabelNome.setBackground(new java.awt.Color(0, 0, 0));
        jLabelNome.setFont(new java.awt.Font("Segoe UI", 1, 40)); // NOI18N
        jLabelNome.setForeground(new java.awt.Color(255, 102, 0));
        jLabelNome.setText("Fulano");

        jLabelMsg15.setBackground(new java.awt.Color(0, 0, 0));
        jLabelMsg15.setFont(new java.awt.Font("Segoe UI", 1, 40)); // NOI18N
        jLabelMsg15.setForeground(new java.awt.Color(255, 102, 0));
        jLabelMsg15.setText("Seja Bem Vindo");

        javax.swing.GroupLayout uJPanelImagem1Layout = new javax.swing.GroupLayout(uJPanelImagem1);
        uJPanelImagem1.setLayout(uJPanelImagem1Layout);
        uJPanelImagem1Layout.setHorizontalGroup(
            uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(uJPanelImagem1Layout.createSequentialGroup()
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jButtonCadastroAnimais, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(uJPanelImagem1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jButtonCadastroCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, uJPanelImagem1Layout.createSequentialGroup()
                                .addGap(50, 50, 50)
                                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButtonBanhoTosa)
                                    .addComponent(jButtonTelaVendas, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(uJPanelImagem1Layout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jLabelMsg15)))
                .addGap(36, 36, 36)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabelNome)
                    .addComponent(jButtonClientesCadastrados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonAnimaisCadastrados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNDefinido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonRelatorioVendas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(451, Short.MAX_VALUE))
        );

        uJPanelImagem1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonAnimaisCadastrados, jButtonBanhoTosa, jButtonCadastroAnimais, jButtonCadastroCliente, jButtonClientesCadastrados, jButtonNDefinido, jButtonRelatorioVendas, jButtonTelaVendas});

        uJPanelImagem1Layout.setVerticalGroup(
            uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(uJPanelImagem1Layout.createSequentialGroup()
                .addGap(65, 65, 65)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonTelaVendas, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonRelatorioVendas, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonBanhoTosa, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonClientesCadastrados, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCadastroCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAnimaisCadastrados, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(34, 34, 34)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCadastroAnimais, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonNDefinido, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 74, Short.MAX_VALUE)
                .addGroup(uJPanelImagem1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelMsg15)
                    .addComponent(jLabelNome))
                .addGap(45, 45, 45))
        );

        uJPanelImagem1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButtonAnimaisCadastrados, jButtonBanhoTosa, jButtonCadastroAnimais, jButtonCadastroCliente, jButtonClientesCadastrados, jButtonNDefinido, jButtonRelatorioVendas, jButtonTelaVendas});

        jMenuHome.setBackground(new java.awt.Color(255, 255, 255));
        jMenuHome.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.black, new java.awt.Color(0, 0, 0)));
        jMenuHome.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jMenuHome.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        jMenuHome.setInheritsPopupMenu(true);

        jMenuCadastros.setBackground(new java.awt.Color(255, 255, 255));
        jMenuCadastros.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pata.png"))); // NOI18N
        jMenuCadastros.setText("Cadastros Extras");
        jMenuCadastros.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N

        JMenuItemCadastroProduto.setBackground(new java.awt.Color(255, 255, 255));
        JMenuItemCadastroProduto.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        JMenuItemCadastroProduto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/osso.png"))); // NOI18N
        JMenuItemCadastroProduto.setText("Cadastros de Produtos");
        JMenuItemCadastroProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMenuItemCadastroProdutoActionPerformed(evt);
            }
        });
        jMenuCadastros.add(JMenuItemCadastroProduto);

        JMenuItemCadastroServico.setBackground(new java.awt.Color(255, 255, 255));
        JMenuItemCadastroServico.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        JMenuItemCadastroServico.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/osso.png"))); // NOI18N
        JMenuItemCadastroServico.setText("Cadastros de Serviços");
        JMenuItemCadastroServico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMenuItemCadastroServicoActionPerformed(evt);
            }
        });
        jMenuCadastros.add(JMenuItemCadastroServico);

        jMenuHome.add(jMenuCadastros);

        jMenuSistema.setBackground(new java.awt.Color(255, 255, 255));
        jMenuSistema.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pata.png"))); // NOI18N
        jMenuSistema.setText("Sistema");
        jMenuSistema.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N

        Servicos1.setBackground(new java.awt.Color(255, 255, 255));
        Servicos1.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        Servicos1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/osso.png"))); // NOI18N
        Servicos1.setText("Fazer Backup");
        Servicos1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Servicos1ActionPerformed(evt);
            }
        });
        jMenuSistema.add(Servicos1);

        jMenuSistema1.setBackground(new java.awt.Color(255, 255, 255));
        jMenuSistema1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pata.png"))); // NOI18N
        jMenuSistema1.setText("Configurações");
        jMenuSistema1.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N

        Servicos2.setBackground(new java.awt.Color(255, 255, 255));
        Servicos2.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        Servicos2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/osso.png"))); // NOI18N
        Servicos2.setText("Configurações da Agenda");
        Servicos2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Servicos2ActionPerformed(evt);
            }
        });
        jMenuSistema1.add(Servicos2);

        jMenuSistema.add(jMenuSistema1);

        jMenuHome.add(jMenuSistema);

        setJMenuBar(jMenuHome);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(uJPanelImagem1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(uJPanelImagem1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void JMenuItemCadastroProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMenuItemCadastroProdutoActionPerformed
        ProdutosCadastrados c = new ProdutosCadastrados(this, true);
        sumir();
        c.setLocationRelativeTo(null);
        c.setVisible(true);
        if (c.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_JMenuItemCadastroProdutoActionPerformed

    private void Servicos1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Servicos1ActionPerformed

    }//GEN-LAST:event_Servicos1ActionPerformed

    private void JMenuItemCadastroServicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMenuItemCadastroServicoActionPerformed
        ServicosCadastrados c = new ServicosCadastrados(this, true);
        sumir();
        c.setLocationRelativeTo(null);
        c.setVisible(true);
        if (c.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_JMenuItemCadastroServicoActionPerformed

    private void jButtonTelaVendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonTelaVendasActionPerformed
        Vendas tela = new Vendas(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonTelaVendasActionPerformed

    private void jButtonBanhoTosaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBanhoTosaActionPerformed
        AgendaBanhoTosa tela = new AgendaBanhoTosa(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonBanhoTosaActionPerformed

    private void jButtonCadastroClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCadastroClienteActionPerformed
        ClientesCadastrados tela = new ClientesCadastrados(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonCadastroClienteActionPerformed

    private void jButtonRelatorioVendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRelatorioVendasActionPerformed
        RelatorioVendas tela = new RelatorioVendas(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonRelatorioVendasActionPerformed

    private void jButtonCadastroAnimaisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCadastroAnimaisActionPerformed
        AnimaisCadastrados tela = new AnimaisCadastrados(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonCadastroAnimaisActionPerformed

    private void jButtonAnimaisCadastradosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAnimaisCadastradosActionPerformed
        UsuariosCadastrados tela = new UsuariosCadastrados(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonAnimaisCadastradosActionPerformed

    private void jButtonClientesCadastradosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClientesCadastradosActionPerformed
        FuncionariosCadastrados tela = new FuncionariosCadastrados(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonClientesCadastradosActionPerformed

    private void jButtonNDefinidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNDefinidoActionPerformed
        RacasCadastradas tela = new RacasCadastradas(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_jButtonNDefinidoActionPerformed

    private void Servicos2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Servicos2ActionPerformed
        ConfiguracoesAgenda tela = new ConfiguracoesAgenda(this, true);
        sumir();
        tela.setLocationRelativeTo(null);
        tela.setVisible(true);
        if (tela.isVisible() == false) {
            aparecer();
        }
    }//GEN-LAST:event_Servicos2ActionPerformed

    public static void main(String args[]) {

        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaInicial().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem JMenuItemCadastroProduto;
    private javax.swing.JMenuItem JMenuItemCadastroServico;
    private javax.swing.JMenuItem Servicos1;
    private javax.swing.JMenuItem Servicos2;
    private javax.swing.JButton jButtonAnimaisCadastrados;
    private javax.swing.JButton jButtonBanhoTosa;
    private javax.swing.JButton jButtonCadastroAnimais;
    private javax.swing.JButton jButtonCadastroCliente;
    private javax.swing.JButton jButtonClientesCadastrados;
    private javax.swing.JButton jButtonNDefinido;
    private javax.swing.JButton jButtonRelatorioVendas;
    private javax.swing.JButton jButtonTelaVendas;
    private javax.swing.JLabel jLabelMsg15;
    private javax.swing.JLabel jLabelNome;
    private javax.swing.JMenu jMenuCadastros;
    public static javax.swing.JMenuBar jMenuHome;
    private javax.swing.JMenu jMenuSistema;
    private javax.swing.JMenu jMenuSistema1;
    private componentes.UJPanelImagem uJPanelImagem1;
    // End of variables declaration//GEN-END:variables
}
